{%extends "index.html"%}
{% load i18n %}
{% load pagination_tags %}
        {%block title%}Series.TopoRojo.es | {% trans "Details for" %} {{serie.name}} {{episode.name}}{%endblock%}
        {%block breadcrumb%}<small><a href="/">{% trans "Home" %}</a> >> <a href="/series/{{serie.slug}}/">{{serie.name|capfirst}}</a> >> {{episode.name|capfirst}}</small>{% endblock breadcrumb%}
        {%block content%}
                <h1> {{serie.name|capfirst}} | {{episode.name|capfirst}}</h1>
                <p>{{episode.description}}</p><br />
                <p><strong>{% trans "USA broadcast" %}:</strong> {{episode.usa_date|date:"l d M Y"}}</p>
                <p><strong>{% trans "Spain broadcast" %}:</strong> {{episode.spain_date|date:"l d M Y"}}</p>
                <br />
                <center>
                        <object width="640" height="393">
                                <param name="movie" value="{{episode.url}}"></param>
                                <param name="allowFullScreen" value="true"></param>
                                <embed src="{{episode.url}}" type="application/x-shockwave-flash" allowfullscreen="true" width="640" height="393"></embed>
                        </object>
                </center>
                <h3><a href="{{episode.url}}">{% trans "Full screen" %}</a></h3>
                <div style="clear: both;"> </div>
                {%endblock%}
                {%block comentarios%}
                <div>
                        {%load comments%}
                        {% get_comment_list for episode as comment_list %}
                        {% if comment_list %}
                                <h3>{% trans "Comments" %}</h3>
                        {% endif %}
                        {% autopaginate comment_list 5 %}
                        {% for comment in comment_list %}
                                <div id="bottom">
                                        <p><strong>{% trans "User" %}: </strong>{{comment.user_name}}</p>
                                        <p><strong>{% trans "URL" %}: </strong><a href="{{comment.user_url}}" style="color:#fff;" target="_new">{{comment.user_url}}</a></p>
                                        <p><strong>{% trans "Comment" %}:</strong></p>
                                        <p>{{comment.comment}}</p>
                                </div>
                        {% endfor %}
                 </div>
                        <br />
                        {% paginate %}
                <br />
                {% get_comment_form for serie as form %}
                <p><strong>{% trans "Leave a comment" %}</strong></p><br />
                {% include "comments/form.html" %}
        {%endblock%}